var CopyWebpackPlugin = require('copy-webpack-plugin')
// var webpack = require("webpack");
module.exports = {
    lintOnSave: false,
       publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
    css: {},
    // publicPath:
    //publicPath: '/qdyj/',
    //   process.env.NODE_ENV === "production" ? "/\n" + "vue-cesium-example/" : "/",
    configureWebpack: {
        plugins: [
            // Copy Cesium Assets, Widgets, and Workers to a static directory
            new CopyWebpackPlugin([
                {
                    from: './node_modules/earthsdk/dist/XbsjCesium',
                    to: 'js/earthsdk/XbsjCesium',
                    toType: 'dir'
                },
                {
                    from: './node_modules/earthsdk/dist/XbsjEarth',
                    to: 'js/earthsdk/XbsjEarth',
                    toType: 'dir'
                }
            ])
        ]
    }
}
